package mianxiangduixiang.week3;

public class AddClass {
    public static void main(String[] args) {
        int a = 5, b = 10;
        String str1 = "qweqw", str2 = "asda";
        double f1 = 2.5, f2 = 5.7;
        float f = 2.5f, ff = 5.5f;
        add(a, b);
        add(str1, str2);
        add(f1, f2);
        add(f, ff);
    }

    private static void add(float f, float ff) {
        System.out.println(f + ff + "");
    }

    private static void add(double f1, double f2) {
        System.out.println(f1 + f2 + "");
    }

    private static void add(String str1, String str2) {
        System.out.println(str1 + str2);
    }

    private static void add(int a, int b) {
        System.out.println((a + b) + "");
    }

}
